package com.csx.saas.platform.system.dao;

import com.baomidou.mybatisplus.annotation.InterceptorIgnore;
import com.csx.basic.base.mapper.SuperMapper;
import com.csx.saas.platform.system.entity.SystemMenu;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 * Mapper 接口
 * 菜单
 * </p>
 *
 * @author ChenSongXin
 * @date 2021-02-28
 */
@Repository
@InterceptorIgnore(tenantLine = "true")
public interface SystemMenuMapper extends SuperMapper<SystemMenu> {

    /**
     * 查询用户可用菜单
     *
     * @param userId
     * @return
     */
    List<SystemMenu> findVisibleMenu(@Param("userId") Long userId);


}
